import request from '@/utils/request'

export const loginAPI = (data) => {
  /* return request({
    url: '/sys/login',
    method: 'post',
    data
  }) */
  return request.post('/sys/login', data)
}

// 获取用户信息
export const getUserInfoAPI = () => {
  return request.post('/sys/profile')
}

// 获取-员工-基本信息
export const getBaseUserInfoAPI = (id) => {
  return request.get(`/sys/user/${id}`)
}
